%% 定义普通变量
a = 1;
a = double(1);
a = int8(1);

%% 定义向量/数组
arr = [1, 2, 3, 4];
arr = [1 2 3 4];
arr = [1; 2; 3; 4];

arrA = ones(1, 10);
arrB = ones(10, 1);

arrA = zeros(1, 10);
arrB = zeros(10, 1);

x = -pi : pi;
x = -pi : 0.01 : pi;

%% 定义矩阵
mat = [1, 2; 3, 4];
mat = [1, 2, 3; 4, 5, 6];
mat = [1, 2; 3, 4; 5, 6];

matA = 2 * ones(3, 2);
matB = zeros(2, 3);

